//
//  UIView+LFZImageCate.h
//  LFZCustomView
//
//  Created by boniu on 2022/5/25.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView(LFZScreenshot)

//View截图
- (UIImage*) screenshot;

//ScrollView截图 contentOffset
- (UIImage*) screenshotForScrollViewWithContentOffset:(CGPoint)contentOffset;

//View按Rect截图
- (UIImage*) screenshotInFrame:(CGRect)frame;

- (UIImage*)imageFromView:(UIView *)view rect:(CGRect)rect;
@end

NS_ASSUME_NONNULL_END
